package ch28.visitor.client;

import ch28.visitor.Structure.ObjectStructure;
import ch28.visitor.action.Amativeness;
import ch28.visitor.action.Failing;
import ch28.visitor.action.Success;
import ch28.visitor.model.Man;
import ch28.visitor.model.Woman;

/**
 * @description: 类描述
 * @author: Fesine
 * @createTime:2016/12/25 15:08
 * @update:修改内容
 * @author: Fesine
 * @updateTime:2016/12/25 15:08
 */
public class Client {
    public static void main(String[] args) {
        ObjectStructure os = new ObjectStructure();
        //添加访问对象
        os.attach(new Man());
        os.attach(new Woman());
        //显示访问对象状态
        os.display(new Success());
        os.display(new Failing());
        os.display(new Amativeness());
    }
}
